//====== 公共样式方法

// =模糊搜索
.mohu-search(@line-hei:25px;){
  // 重置select2的样式
  .select2-selection{
    width: 100% !important;
  }
  .select2-container{
    // margin-top: -1px;
    &:focus{
      -webkit-outline: none;
      outline: none;
    }
  }
  .select2-container .select2-selection--single{
    height: @line-hei;
    border-color: #d7d7d7;
  }
  .select2-selection__rendered{
    line-height: @line-hei;
  }
  // =下拉项相关
  .select2-container--default{
    // 搜索框
    .select2-search--dropdown .select2-search__field{
      border-color: #d7d7d7;
      &:focus,&.select2-container--focus{
        border-color: @col_blue;
      }
    }
    // 箭头
    .select2-selection--single{
      .select2-selection__arrow{
        height: @line-hei - 1;
      }
      .select2-selection__rendered{
        color: #666;
      }
    }
  }
  .select2-dropdown{
    border-color: #d7d7d7;
    border-radius: 0;
    .select2-search__field{
      font-size: 12px;
      padding: 2px 0 2px 4px;
    }
  }
  // ==结果部分
  .select2-results__option{
    font-size: 12px;
    line-height: 20px;
    padding: 0 0 0 6px;
  }
}